/*
 * TranslateRecessionVelocityKernel.h
 *用于将ReadRecessionVelocityMaterial中读取的后退速率转换成变量，以用于设置动边界
 *  Created on: 2017年5月24日
 *      Author: liuxiao
 */
#pragma once

#include "Kernel.h"
#include "ReadRecessionVelocityMaterial.h"

class TranslateRecessionVelocityKernel : public Kernel
{
public:

	TranslateRecessionVelocityKernel(const InputParameters & parameters);

protected:
  virtual Real computeQpResidual();
  virtual Real computeQpJacobian();
  virtual Real computeQpOffDiagJacobian(unsigned int jvar);

private:
  int _component;
  const MaterialProperty<Real> & _vnx;
  const MaterialProperty<Real> & _vny;
  const MaterialProperty<Real> & _vnz;

};

template<>
InputParameters validParams<TranslateRecessionVelocityKernel>();
